package cn.fj.xiaowei.main.common.response.en;

import lombok.Getter;

/**
 * 响应结果状态枚举
 */
@Getter
public enum RespStatusEnum {

    SUCCESS(true, "成功"),
    FAIL(false, "失败");

    /**
     * 响应结果状态，true-成功；false-失败
     */
    private final Boolean status;

    /**
     * 响应结果状态的描述
     */
    private final String desc;

    /**
     * 响应结果状态枚举
     *
     * @param status 响应结果状态，true-成功；false-失败
     * @param desc   响应结果状态的描述
     */
    private RespStatusEnum(Boolean status, String desc) {
        this.status = status;
        this.desc = desc;
    }

}
